Repository navigation
Conversation
[Low impact] The change affects the vertical placement of percentage labels in bar icons. Complete the required live visual check before merging. Findings
SummaryCenters bar percentage labels using the figures’ bounds and font ascent instead of the rounded text box.
Reviews (2) · Last reviewed commit: "Center bar icon labels on their figure i..." · Reviewed by Greptile |
| y: parent.height / 2 - labelMetrics.ascent | ||
| - labelMetrics.tightBoundingRect("0").top - labelMetrics.tightBoundingRect("0").height / 2 |
There was a problem hiding this comment.
Live visual check is missing. This changes where
BarIconButton draws percentage labels, but the PR states that only offscreen Qt was checked. The repository requires visual changes to be verified in the running UI in addition to automated tests. Check this branch in the running desktop and attach before/after captures of the bar; offscreen component captures do not satisfy that requirement.
File Used: AGENTS.md (source)
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!




What changes
The label's rounded line box and leading displaced its numeric ink from the bar icon's center. Position figures from the actual baseline and ink bounds.
Fixes #18770.
Reproduce
Verification
Focused check:
The extended geometry test fails on the base and passes in real Qt without skips. At default and caption sizes, measured figure-center errors of −0.4296875 and −0.40625 pixels become zero. Default raster digits move one row; caption raster pixels are unchanged on this renderer.
Tested commit:
2be426ca8780100958b60a9ee2dd3042216c53d2; baseline:4bf10ed28342b597009dcf573ffc0d70b94b31e3.Not checked / limits: Offscreen Qt 6.12 at scale 1 with JetBrainsMono Nerd Font; live Wayland, other fonts and display scales were not checked. PR #17914 explicitly excludes this component.
Combined validation is incomplete: the CLI portion of
./test/allpassed, but the interrupted shell run had 11 failures whose baseline comparisons were not completed. This is not a full-suite pass.Runtime report, commands and logs · Exact patch, focused logs and Sol review.
Screenshots
Actual BarIconButton rendered by offscreen Qt at scale 1 with synthetic percentages. Caption raster output is unchanged despite the corrected subpixel geometry.
Related
Related: #17914 changes WidgetButton and explicitly leaves BarIconButton for a separate change.
Prepared with Codex; reviewed once by gpt-6.1-sol with no actionable findings. Scoped runtime verification ran through the connected T3 Omarchy instance.